﻿using PwjCy.Lite.Core;
using PwjCy.Lite.EntityLite;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PwjCy.Lite.Persistence.Imp
{
    public class Persister : IPersister
    {
        public Persister()
        {
        }
        public bool Save(IPwjCyObject pwjcyObject)
        {
            return new PersisterContext().Save(pwjcyObject);
        }

        public IPwjCyObject LoadPwjCyObject(string storageAlias, Type t, object Id)
        {
            return new PersisterContext().LoadPwjCyObject(storageAlias, t, Id);
        }
    }
}
